<?php
/**
 * Created by PhpStorm.
 * User: ari
 * Date: 1/16/2015
 * Time: 1:28 PM
 */
namespace BC\Socket;

use CPath\Request\Form\IFormRequest;
use CPath\Request\MimeType\IRequestedMimeType;

class SocketFormRequest extends SocketRequest implements IFormRequest
{

	public function __construct($socket, $method, $path, $parameters = array(), IRequestedMimeType $MimeType = null) {
		parent::__construct($socket, $method, $path, $parameters, $MimeType);
	}

	/**
	 * Return a request value
	 * @param $fieldName
	 * @return mixed|null the form field value or null if not found
	 */
	function getFormFieldValue($fieldName) {
		return $this->getRequestValue($fieldName);
	}
}